package com.joysuch.wwyt.patrol.service.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.joysuch.wwyt.patrol.entity.PatrolOption;
import com.joysuch.wwyt.patrol.mapper.PatrolOptionMapper;
import com.joysuch.wwyt.patrol.service.PatrolOptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lrf
 * @since 2022-03-01
 */
@Service
public class PatrolOptionServiceImpl extends ServiceImpl<PatrolOptionMapper, PatrolOption> implements PatrolOptionService {

    @Autowired
    private PatrolOptionMapper mapper;

    @Override
    public int deleteByIds(List<Long> ids) {
        if (CollectionUtil.isNotEmpty(ids)) {
            return mapper.deleteByIds(ids);
        }
        return 0;
    }
}
